﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_HeaderControl : BaseUserControl
{
    // Fields
    private string _Select;


    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        if (this._Select == "index")
        {
            this.index.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "program")
        {
            this.program.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "order")
        {
            this.order.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "youhuiquan")
        {
            this.youhuiquan.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "user")
        {
            this.user.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "shanghu")
        {
            this.shanghu.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "yingxiao")
        {
            this.yingxiao.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "leibie")
        {
            this.leibie.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "diaocha")
        {
            this.diaocha.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "shezhi")
        {
            this.shezhi.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "tongji")
        {
            this.tongji.Attributes.Add("class", "dangqian");
        }
        else if (this._Select == "fuwu")
        {
            this.fuwu.Attributes.Add("class", "dangqian");
        }
    }

    // Properties
    public string Select
    {
        get
        {
            return this._Select;
        }
        set
        {
            this._Select = value;
        }
    }

}